{include file="common/comm_header" /}

<body>

  <div class="layui-anim layui-anim-up">
      <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">分类管理</a>
        <a href="">分类列表</a>
      </span>
          <a class="layui-btn layui-btn-lg" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:window.location.reload();" title="刷新">
              <i class="layui-icon" style="line-height:40px">刷新</i></a>
      </div>
      <div class="x-body">


          <xblock>
              <button class="layui-btn" onclick="x_admin_show('添加分类','/{$Think.ADMIN_ROUT_PREFIX}/assort-add',700,500)"><i class="layui-icon"></i>添加</button>
          </xblock>


          <!--数据list-->
          <table class="layui-table">
              <thead>
              <tr>
                  <th>ID</th>
                  <th>分类标题</th>
                  <th>分类描述</th>
                  <th>分类排序</th>
                  <th>分类状态</th>
                  <th>创建时间</th>
                  <th>修改时间</th>
                  <th>操作</th></tr>
              </thead>
              <tbody>
              {if condition="empty($indexDataList->getCollection()->toArray())"}
              <tr>
                  <td colspan="8" style="text-align: center;">
                      <h1><font color="#8b0000">暂时没有任何数据</font></h1>
                  </td>
              </tr>
              {else /}
              {volist name="indexDataList" id="vo"}
              <tr>
                  <td>{$vo.assort_id}</td>
                  <td>{$vo.assort_title}</td>
                  <td>{$vo.assort_description}</td>
                  <td>{$vo.assort_sort}</td>
                  <td class="td-status">
                      {eq name="$vo.assort_status" value="1"}
                      <span class="layui-btn layui-btn-normal layui-btn-mini">有效</span>
                      {else/}
                      <span class="layui-btn layui-btn-danger layui-btn-mini">无效</span>
                      {/eq}
                  </td>
                  <td>{$vo.create_time}</td>
                  <td>{$vo.update_time}</td>
                  <td class="td-manage">

                      <button class="layui-btn layui-btn-radius layui-btn-sm" onclick="x_admin_show('编辑分类','/{$Think.ADMIN_ROUT_PREFIX}/assort-edit?id={$vo.assort_id}',750,550)">
                          编辑
                      </button>

                  </td>
              </tr>
              {/volist}
              {/if}
              </tbody>
          </table>
          {$page}




      </div>
  </div>




    <a href="#" class="to-top"><i class="layui-icon" style="font-size: 30px">&#xe68e;</i></a>
    <script type="text/javascript" src="/static/common/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/common/js/jquery.toTop.min.js"></script>
    <script type="text/javascript" src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="/static/common/js/html5.min.js"></script>
    <script src="/static/common/js/respond.min.js"></script>
    <![endif]-->
  </body>

{include file="common/comm_bottom" /}